home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / Metrowerks Support / Libraries / CW MALibraries / CWMacAppSwitches.h < prev    next >
Encoding:
Text File  |  1996-04-03  |  4.9 KB  |  194 lines  |  [TEXT/CWIE]

  1. // CWMacAppSwitches.h
  2. //
  3. // This file is included by "CWMacApp.pch.h" and similar files. 
  4. //
  5. // MacApp 3.3+ and CW8 (CodeWarrior C/C++ PPC/68K 1.4) version. 
  6. //
  7. //----------------------------------------------------------------------------------------
  8.  
  9. // ========================================================
  10. // ••• BIG RED SWITCH FOR DEBUGGING •••
  11. // 0=nodebug, 1=debug (finer grain control can be found in CWMacAppSwitches.h)
  12. // ========================================================
  13. #if !defined(wantDebugging)
  14.     #define wantDebugging 0    
  15. #endif
  16.  
  17. // The following flags are now being set by the file CWAutoSwitches.h
  18. // which is created and updated by the 'Build CW MA Libraries' script.
  19. // If you don't use the Build CW MA Libraries script and you want to 
  20. // change the switches you can either change them directly in 
  21. // CWAutoSwitches.h or you can undefine qAutoSwitches and then set
  22. // the switches in this file.
  23.  
  24. #define qAutoSwitches 1
  25.  
  26. #if defined(qAutoSwitches)
  27.     #include "CWAutoSwitches.h"
  28. #else
  29.  
  30.     // ========================================================
  31.     // System Software requirements
  32.     // ========================================================
  33.     #define qNeedsSystem7_5 0
  34.  
  35.  
  36.     // ========================================================
  37.     // MacApp 3.3 Features
  38.     // ========================================================
  39.     #define qAttachable 1
  40.     #define qDrag 1
  41.     #define qPowerTalk 1
  42.     #define qOptimizeSelfSendAevt 1    
  43.  
  44.  
  45.     // ========================================================
  46.     // MacApp 3.5 Features
  47.     // ========================================================
  48.     #define qContainer 0
  49.     #define qGXPrinting 1
  50.     #define qGXViews 0
  51.  
  52.  
  53.  
  54.     // ========================================================
  55.     // Template views support
  56.     // ========================================================
  57.     #define qTemplateViews 1
  58.     #define qWriteTemplateViews 0
  59.  
  60.  
  61.     // ========================================================
  62.     // Virtual user support
  63.     // ========================================================
  64.     #define qNeedsVU 0
  65.  
  66.  
  67. #endif        // qAutoSwitches
  68.  
  69. // ========================================================
  70. // Other system requirements
  71. // ========================================================
  72. #define qNeedsColorQD 1
  73.  
  74.  
  75. // ========================================================
  76. // Processor and code model requirements
  77. // ========================================================
  78. #define qPowerPC 0
  79. #if defined(__POWERPC__)
  80.     #if __POWERPC__
  81.     #undef qPowerPC
  82.     #define qPowerPC 1
  83.     #endif
  84. #endif
  85.  
  86. #if defined(__CFM68K__)
  87.     #if __CFM68K__
  88.     #define qModelCFM 1
  89.     #endif
  90. #endif
  91.  
  92. //__MC68881__ and __MC68020__ are set in the processor pane
  93. #if defined(__MC68881__)
  94.     #if __MC68881__
  95.     // remember that you won't be able to run the resulting app on a PPC if you set this
  96.     #define qNeedsFPU 1
  97.     #endif
  98. #endif
  99.  
  100. #if defined(__MC68020__)
  101.     #if __MC68020__
  102.     #define qNeedsMC68020 1
  103.     #endif
  104. #endif
  105.  
  106.  
  107. // qModelFarCode isn't affected by precompiling    
  108. #define qModelFarCode 1
  109.  
  110. #if defined(MW_REZ)
  111.     // set in Processor Panel
  112.     #define qModelFarData __option(far_data)
  113. #else
  114.     // Just guess!
  115.     #define qModelFarData 0
  116. #endif
  117.  
  118. // ========================================================
  119. // Detailed Debugging support
  120. // ========================================================
  121. // wantDebugging is sort of one stop shopping for debugging
  122. #if wantDebugging
  123.  
  124. // Debug
  125.     #define qDebug 1
  126.  
  127.     #if !defined(qAutoSwitches)
  128.         #define qDebugMsg 1
  129.         #define qSym 1
  130.         #define qTheDebugger 1
  131.         #define qInspector 1
  132.         #define qRangeCheck 1
  133.         #define qPerform 0
  134.         //CW can use MPW's performance tools except when Jasik's debugger is
  135.         //running under emulation. Try it with Macsbug, MW Debug, SourceBug, 
  136.         //or Jasik running on a 68K machine. (The same limitation applies
  137.         //when Jasik is used with a CFront build.)
  138.     #endif        // qAutoSwitches
  139.  
  140.     #if defined(MW_REZ)
  141.         #define qNames 1
  142.     #else
  143.         #define qNames (__option(macsbug) || __option(oldstyle_symbols))
  144.     #endif
  145.  
  146. #else
  147.  
  148. // NoDebug
  149.     #define qDebug 0
  150.  
  151.     #if defined(qAutoSwitches)
  152.         #undef qDebugMsg
  153.         #undef qSym
  154.         #undef qTheDebugger
  155.         #undef qPerform
  156.         #undef qRangeCheck
  157.         #undef qOptimizeSelfSendAevt    
  158.     #endif        // qAutoSwitches
  159.  
  160.     #define qDebugMsg 0
  161.  
  162.     #if defined(MW_REZ)
  163.         #define qNames 0
  164.     #else
  165.         #define qNames (__option(macsbug) || __option(oldstyle_symbols))
  166.     #endif
  167.  
  168.     #define qSym 0
  169.     #define qTheDebugger 0
  170.     #define qInspector 0
  171.     #define qPerform 0
  172.     #define qRangeCheck 0
  173.     #define qOptimizeSelfSendAevt 1    
  174. #endif
  175.  
  176. // MPW's performance tools can't work with a PPC build
  177. #if qPowerPC
  178.     #undef qPerform
  179.     #define qPerform 0
  180. #endif
  181.  
  182.  
  183. // ========================================================
  184. // NOW - Let MacApp setup the remaining conditional macros
  185. // ========================================================
  186. // Conditional Macros (include before any other headers)
  187. #if !defined(__MACONDITIONALMACROS__)
  188.     #include "MAConditionalMacros.h"
  189. #endif
  190.  
  191.  
  192. //----------------------------------------------------------------------------------------
  193. // End of CWMacAppSwitches.h
  194.